Function Reference

IsBool

Checks if a variable's base type is boolean.

IsBool ( variable )

 

Parameters

variable The variable/expression to check.

 

Return Value

Success: Returns 1.
Failure: Returns 0 if expression is not boolean type.

 

Remarks


 

Related

IsArray, IsFloat, IsInt, IsNumber, IsString, IsHWnd

 

Example


$b = true
If IsBool($b) Then Msgbox(0,"Success", "$b is a boolean variable")